#ifndef PARTICLE_SHOOTER_H
#define PARTICLE_SHOOTER_H

#include <QRandomGenerator>
#include "particle_system.h"

class ParticleShooter {
    public:
        ParticleShooter(QVector3D &position
                        , QVector3D &color
                        , QVector3D &direction
                        , float angleVarianceInDegree)
            :m_position(position)
             , m_color(color)
             , m_direction(direction)
             , m_angleVariance(angleVarianceInDegree) {
        };
        virtual ~ParticleShooter() = default;

    public:
        void addParticles(ParticleSystem *particleSystem
                                 ,float currentTime
                                 ,int count);

    private:
        QVector3D m_position;
        QVector3D m_color;
        QVector3D m_direction;
        float m_angleVariance;
};

#endif // PARTICLE_SHOOTER_H
